package io.github.lee.app.unsplash.global.di.http.interceptor

import okhttp3.Interceptor
import okhttp3.Response

private const val ACCESS_KEY = "RKmJFYDGTPRGdZsHjl1mzZ0F96rvXwo7GYhmfyPh368"
//private const val SECRET_KEY = "uoOBTPogKeS9axNw0Fe8VgMuDWOLbKGhLdFm7qVmfwE"


class PublicHeaderInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        return chain.proceed(
            chain.request()
                .newBuilder()
                .addHeader("Accept-Version", "v1")
                .addHeader("Authorization", "Client-ID $ACCESS_KEY")
                .build()
        )
    }

}